#数组录入
nums = [0,1,2,3,4]
tetal = 0
#选取第一个数
for i in nums:
    if i == 0:
        continue
    # 选取第二个数
    for j in nums:
        if j == i:
            continue
        # 选取第三个数
        for k in nums:
            if k == j or k == i:
                continue
            # # 选取第四个数
            # for l in nums:
            #     if l == j or l == i or l ==k:
            #         continue
            #     # 选取第五个数
            #     for p in nums:
            #         if p == j or p == i or p == k or p == l:
            #             continue
            #         #不重复的五位数
            #         print(i,j,k,l,p)
            #     tetal += 1
            # 不重复的三位数
            print(i, j, k)
            tetal += 1

print(f'总共有{tetal}个数')